package com.sxf.querybean;

import java.util.List;
import java.util.Map;

import com.sxf.querybean.base.BaseQuery;

/**
 * 数据库查询bean
 * 
 * @author SXF
 * 
 */
public class PostQuery extends BaseQuery {
	private Long id;
	private String title;// 标题
	private Long author;
	private String type;
	private String status;
	public List<String> statusList;// 状态列表

	private String dateByMonth;// 按月份归类

	private Map<String, Object> map;

	// 根据 term查询
	public QueryType queryType;
	private String termName;
	private Long termId;

	// 是否查询所有的列
	private boolean queryAllColumn;

	private int near;// 查询上一条,下一条(-1:上一条;0:什么都不做;1:下一条)

	public enum QueryType {
		queryPost, queryByTerm
	}

	private static final long serialVersionUID = 1L;

	public PostQuery() {
		// TODO Auto-generated constructor stub
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getAuthor() {
		return author;
	}

	public void setAuthor(Long author) {
		this.author = author;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTermName() {
		return termName;
	}

	public void setTermName(String termName) {
		this.termName = termName;
	}

	public Long getTermId() {
		return termId;
	}

	public void setTermId(Long termId) {
		this.termId = termId;
	}

	public String getDateByMonth() {
		return dateByMonth;
	}

	public void setDateByMonth(String dateByMonth) {
		this.dateByMonth = dateByMonth;
	}

	public boolean getQueryAllColumn() {
		return queryAllColumn;
	}

	public void setQueryAllColumn(boolean queryAllColumn) {
		this.queryAllColumn = queryAllColumn;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public List<String> getStatusList() {
		return statusList;
	}

	public void setStatusList(List<String> statusList) {
		this.statusList = statusList;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Map<String, Object> getMap() {
		return map;
	}

	public void setMap(Map<String, Object> map) {
		this.map = map;
	}

	/**
	 * 查询上一条,下一条(-1:上一条;0:什么都不做;1:下一条)
	 * 
	 * @return
	 */
	public int getNear() {
		return near;
	}

	/**
	 * 查询上一条,下一条(-1:上一条;0:什么都不做;1:下一条)
	 * 
	 * @param near
	 */
	public void setNear(int near) {
		this.near = near;
	}

}
